package  ${pPackage}.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
/**
 * ${table.comment}
 */
@Data
@TableName("${table.name}")
public class ${ClassName}DO extends Model<${ClassName}DO> {

    <#list table.columns as column>
    /**
     * ${column.columnComment!""}
     */
    <#if column.columnKey =='true'>
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    </#if>
    @Excel(name = "${column.columnComment!}", width = 15)
    private ${column.columnType} ${column.columnName2};
    </#list>

    <#list table.columns as column>
    public void set${column.columnName2?cap_first}(${column.columnType} value) {
            this.${column.columnName2} = value;
            }
    public ${column.columnType} get${column.columnName2?cap_first}() {
            return this.${column.columnName2};
            }
    </#list>
}
